package com.zlyx.easy.test.mybatis.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.zlyx.easy.core.model.UserModel;
import com.zlyx.easy.test.mybatis.mapper.TestMapper;

@RestController
@RequestMapping("/mybatis")
public class MybatisController {

	@Autowired
	private TestMapper testMapper;

	@RequestMapping("/findlist")
	public List<UserModel> doOnRefreshed(String ids) throws Exception {
		return testMapper.findlist();
	}

}
